<template>
  <BasicModal
    v-bind="$attrs"
    @register="registerModal"
    :defaultFullscreen="true"
    :destroyOnClose="true"
    title="数据中台详情"
    :width="1200"
    @ok="handleSave"
    :showOkBtn="false"
  >
    <page-list :pageOption="pageOption" ref="tableRef" />
  </BasicModal>
</template>
<script lang="ts" name="componentName" setup>
  import pageList from '../../../components/newPageList/index.vue';
  import { BasicModal, useModalInner } from '/@/components/Modal';
  const tableRef = ref(null);
  const [registerModal, { setModalProps, closeModal }] = useModalInner((data) => {
    console.log('页面传的data', data);
    tableRef.value?.setTableData(data.res?.details);
  });
  const pageOption = {
    dataUrl: '/emp/hubTeamResultAdd',
    method: 'GET',
    showCreate: false,
    batchEdit: false,
    noSelection: true,
    showActionColumn: false,
    immediate: false,
    showSearchForm: false,
    pagination: false,
    beforeFetch: (params) => {
      return Object.assign(params, {});
    },
    columns: [
      {
        title: '班组',
        align: 'center',
        dataIndex: 'orgCode',
      },
      {
        title: '姓名',
        align: 'center',
        dataIndex: 'psnName',
      },
      {
        title: '工单得分',
        align: 'center',
        dataIndex: 'sumPoints',
      },
    ],
    customActions: [],
  };
  const handleSave = () => {};
</script>
<style lang="less" scoped></style>
